package com.API.dal.providers;

import com.API.dal.entities.Equipments;
import com.API.dal.entities.Objects;
import com.API.dal.entities.Orders;
import com.API.dal.entities.PaymentsTypes;

import java.util.List;

/**
 * Интерфейс работы с накладными и счетами
*/
public interface OrdersProvider {

    void addOrder(Orders order);
    void addEquipmentToOrder(int price, int quantity, Equipments equipment, Orders order);
    void updateEquipmentInOrder(Equipments equipment, Orders order, int quantity, int price);
    void updateOrder(Orders order);
    List<Orders> getOrdersByPayType(PaymentsTypes paymentsTypes);
    List<Orders> getOrdersByPayType(int paymentsTypes_id);
    List<Orders> getOrdersByPayType(String paymentsTypes_name);
    List<Orders> getOrders();
    List<Orders> getEquipmentOrders(int equipment_id);
    List<Orders> getEquipmentOrders(String equipment_name);
    List<Orders> getOrdersBySupplier(int supplier_id);
    List<Orders> getOrdersBySupplier(String supplier_name);


}
